namespace DingHeng.TransportationManagement.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TransportationForm")]
    public partial class TransportationForm
    {
        public Guid ID { get; set; }

        public Guid? VehicleDispatchID { get; set; }

        public Guid? VehicleID { get; set; }

        public DateTime? LoadTime { get; set; }

        public Guid? LoadLocation { get; set; }

        public Guid? LoadUserID { get; set; }

        [StringLength(8)]
        public string LoadUserName { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? LoadTotalQuantity { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? LoadVehicleQuantity { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? LoadQuantity { get; set; }

        public DateTime? UnloadTime { get; set; }

        public Guid? UnloadUserID { get; set; }

        [StringLength(8)]
        public string UnloadUserName { get; set; }

        public Guid? UnloadLocation { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? UnloadTotalQuantity { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? UnloadVehicleQuantity { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? UnloadQuantity { get; set; }

        public DateTime? StartTime { get; set; }

        public DateTime? ArriveTime { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? Duration { get; set; }

        public Guid? Status { get; set; }

        [StringLength(8)]
        public string CreateBy { get; set; }

        public DateTime? CreateDate { get; set; }

        [StringLength(8)]
        public string UpdateBy { get; set; }

        public DateTime? UpdateDate { get; set; }

        public bool? IsActive { get; set; }

        public virtual Vehicle Vehicle { get; set; }

        public virtual VehicleDispatchForm VehicleDispatchForm { get; set; }
    }
}
